# -*- coding: utf-8 -*- 
# @Time : 2020-12-03 23:50 
# @Author : derek.zhang 
# @File : fake_action.py 
# @Software: PyCharm
from rightadmin.models import Action


def fake_action_data():
    Action.objects.all().delete()
    print('delete all action data')
    Action.objects.create(name='CREATE',description='创建及编译', aid=1)
    Action.objects.create(name='XCHANGE', description='环境流转', aid=2)
    Action.objects.create(name='DEPLOY', description='部署', aid=3)
    print('create action action data')